<template>
    <div>
        <button @click="minus">-</button>
        <button @click="add">+</button>
        <p>{{count}}</p>
    </div>
</template>
<script>
export default {
    data(){
        return {
            count:1
        };
    },
    methods: {
        minus(){
            this.count--;
        },
        add(){
            this.count++;
        }
    },
}
</script>